# 使用daphne运行

"""
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either def
ine the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
"""

python manage.py runserver 0.0.0.0:8001
set DJANGO_SETTINGS_MODULE=websocket_my.settings
daphne -p 8001 websocket_my.asgi:application
daphne -b 0.0.0.0 -p 8001 websocket_my.asgi:application

daphne -b 0.0.0.0 -p 8001 websocket_my.asgi:application